package com.mowwang.file;

import java.io.File;
import java.io.IOException;

public class FileDemo {
    public static void makedir() throws IOException {
//        File file1=new File("e:/a.txt");
//        boolean isSuccess=file1.createNewFile();
//        System.out.println(isSuccess);
        File file=new File("d:/library");
        boolean b=file.mkdir();
        System.out.println(b);

    }
    public static void main(String[] args) throws IOException {
       // File file=new File("d:\\demo.txt");//一个反斜杠是转义字符
        makedir();


    }


}
